# -*- coding: utf-8 -*-
"""
# @Time    : 2021/1/11 下午4:31
# @Author  : tgy
"""
import configparser


if __name__ == '__main__':
    ...
    config_parser = configparser.ConfigParser()
    with open('./conf.ini', mode='rt', encoding='utf-8') as f:
        config_parser.read_file(f)
    print(config_parser.sections())
    print(config_parser.get('base', 'url'))
    print(config_parser.items('main'))
    print(config_parser.getint('base', 'key'))



